package com.future.north.manager.Impl;

import com.future.north.dao.DubboMonitorDao;
import com.future.north.manager.DubboMonitorManager;
import com.future.north.api.model.DubboMonitor;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DubboMonitorManagerImpl implements DubboMonitorManager {
    @Autowired
    private DubboMonitorDao dubboMonitorDao;

    @Override
    public Long pageCount() {
        return dubboMonitorDao.pageCount();
    }

    @Override
    public List<DubboMonitor> pageList() {
        return dubboMonitorDao.pageList();
    }

    @Override
    public Long insert(DubboMonitor dubboMonitor) {
        return dubboMonitorDao.insert(dubboMonitor);
    }

    @Override
    public List<DubboMonitor> findAll() {
        return dubboMonitorDao.findAll();
    }

    @Override
    public Page<DubboMonitor> findByPage() {
        return dubboMonitorDao.findByPage();
    }
}
